local sk__shiao = fk.CreateSkill {

  name = "sk__shiao",

  tags = {  },

}



sk__shiao:addEffect(fk.EventPhaseStart, {
  name = "sk__shiao",
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__shiao.name) and (player.phase == Player.Start or player.phase == Player.Finish)
  end,
  on_cost = function(self, event, target, player, data)
    local room = player.room
    local use=room:askToUseVirtualCard(player,{
      name="slash",
      skill_name=sk__shiao.name,
      prompt="#sk__shiao-invoke",
      cancelable=true,
      skip=true,
      extra_data={
        bypass_times=true,
        bypass_distances=false,
      }
    })
    if use then
      event:setCostData(self, use)
      return true
    end
  end,
  on_use = function(self, event, target, player, data)
    player.room:useCard(event:getCostData(self))
  end,
})

return sk__shiao